<md-dialog style="width:550px;">
  <form name="indexSetForm" novalidate>
  <md-dialog-content class="sticky-container">
    <md-subheader class="md-sticky-no-effect">{{title}}</md-subheader>
    <div style="margin-left:30px;margin-right:30px">
      <label >指标名称</label>
      <md-select ng-model="index.indexName" ng-disabled="isUpdate">
        <md-select-label>{{index.indexName ? index.indexName : "请选择"}}</md-select-label>
        <md-option ng-value="index.indexName"  ng-repeat="index in indexs">{{index.indexName}}</md-option>
      </md-select>
    </div>
    <div style="margin-left:30px;margin-right:30px">
      <md-input-container flex>
        <label >显示名称</label>
        <input ng-model="index.indexDisplayName" required name="indexDisplayName" pattern='^[^<>\\/:"*?]+$' aria-label="viewName">
        <div ng-messages="indexSetForm.indexDisplayName.$error">
          <div ng-message="pattern">不能输入以下字符：< > \ / : " * ? </div>
          <div ng-message="required">显示名称必填</div>
        </div>
      </md-input-container>
    </div>
  </md-dialog-content>

  <div class="md-actions" layout="row">
    <md-button ng-click="modify()" class="md-primary" ng-disabled="indexSetForm.$invalid||!index.indexName">
      提交
    </md-button>
    <md-button ng-click="cancel()" class="md-primary">
      返回
    </md-button>
  </div>
  </form>
</md-dialog>